package com.guomao.demoi;

import java.util.*;
import java.util.stream.Stream;

public class JavaDemo1 {

    public static void main(String[] args) {

        ArrayList<String> list = new ArrayList<>();
        Stream<String> stream1 = list.stream();

        HashSet<String> set = new HashSet<>();
        Stream<String> stream2 = set.stream();

        TreeSet<Integer> treeSet = new TreeSet<>();
        Stream<Integer> stream3 = treeSet.stream();

        HashMap<String, Integer> map = new HashMap<>();
        Set<String> keySet = map.keySet();
        Collection<Integer> values = map.values();

        Stream<String> stream4 = keySet.stream();
        Stream<Integer> stream5 = values.stream();

        int[] arr = {1, 2, 3, 4, 5, 6, 7, 8, 9};
        Stream<int[]> stream = Stream.of(arr);

    }
}
